<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>{:cache('systemsystem' . cookie('think_var'))['title']['value']}</title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <!-- <link rel="shortcut icon" href="/favicon.ico"> -->
    <link href="{__FRAME_PATH}css/bootstrap.min.css" rel="stylesheet">
    <link href="{__FRAME_PATH}css/font-awesome.min.css" rel="stylesheet">
    <!-- <link href="{__FRAME_PATH}css/animate.min.css" rel="stylesheet"> -->
    <link href="{__FRAME_PATH}css/style.min.css" rel="stylesheet">
    <style>
        .swal2-container{z-index: 100000000000!important;}
    </style>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close"><i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element admin_open">
                        <span>
                            <img alt="image" class="imgbox" src="{$site_logo??''}" onerror="javascript:this.src='{__FRAME_PATH}img/admin_logo.png';"/>
                        </span>
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear" style="margin-top: 20px;">
                                <span class="block m-t-xs"><strong class="font-bold">{$Admin.name??''}({switch name="$Think.cookie.think_var_admin"}
                                    {case value="zh-cn"}中文{/case}
                                    {case value="en-us"}英文{/case}
                                    {/switch})</strong></span>
                                <span class="text-muted text-xs block">{$role_name.role_name ? $role_name.role_name : '管理员'}<b class="caret"></b></span>
                            </span>
                        </a>
                        <ul class="dropdown-menu animated fadeInRight m-t-xs">
                            <li><a class="J_menuItem admin_close" href="{:url('admin/edit',['id'=>$Admin.id])}">个人资料</a>
                            </li>
                            <li><a class="admin_close"  id="parentIframe" href="#">联系我们</a>
                            </li>
                            <li>
                                <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=1759766312&amp;site=qq&amp;menu=yes">
                                    <img border="0" src="http://wpa.qq.com/pa?p=2:1759766312:51" alt="点击这里给我发消息" title="点击这里给我发消息">
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li><a href="#" onclick="logout()">安全退出</a>
                            </li>
                        </ul>
                    </div>
                    <div class="logo-element">DL
                    </div>
                </li>
                <!--  菜单  -->
                {include file="public:__menu"}
            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row content-tabs" @touchmove.prevent  >
            <button class="roll-nav roll-left navbar-minimalize" style="padding: 0;margin: 0;"><i class="fa fa-bars"></i></button>

            <nav class="page-tabs J_menuTabs">
                <div class="page-tabs-content">
                    <a href="javascript:;" class="active J_menuTab" data-id="{:Url('Index/welcome')}">首页</a>
                </div>
            </nav>
            <button class="roll-nav roll-right J_tabLeft"><i class="fa fa-backward"></i></button>
            <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i></button>

            <a href="javascript:void(0);" class="roll-nav roll-right J_tabReply" title="返回"><i class="fa fa-reply"></i> </a>
            <a href="javascript:void(0);" class="roll-nav roll-right J_tabRefresh" title="刷新"><i class="fa fa-refresh"></i> </a>
            <a href="javascript:void(0);" class="roll-nav roll-right J_tabFullScreen" title="全屏"><i class="fa fa-arrows"></i> </a>
            <a href="javascript:void(0);" class="roll-nav roll-right J_notice" data-toggle="dropdown" aria-expanded="true" title="消息"><i class="fa fa-bell"></i> <span class="badge badge-danger" id="msgcount"></span></a>
            <ul class="dropdown-menu dropdown-alerts dropdown-menu-right" >
                <li style="display:none">
                    <a class="J_menuItem" href="{:Url('order.store_order/index')}">
                        <div>
                            <i class="fa fa-building-o"></i> 新评论
                            <span class="pull-right text-muted small" id="ordernum">0个</span>
                        </div>
                    </a>
                </li>
                <li class="divider" style="display:none"></li>
                <li>
                    <a href="#" onclick="xml()">
                        <div>
                            <i class="fa fa-pagelines"></i> 站点地图 <span class="pull-right text-muted small" id="inventory">xml</span>
                        </div>
                    </a>
                </li>
                
                <li class="divider"></li>
                <li>
                    <a href="#" onclick="cleanCache()">
                        <div>
                            <i class="fa fa-comments-o"></i> 更新缓存
                        </div>
                    </a>
                </li>
                <li class="divider"></li>
                <li>
                    {eq name="$Think.cookie.autolang" value="on"}
                        <a href="#" class="on" onclick="autolang(this)"><i class='fa fa-comments-o'></i>自动语言(开)</a>
                    {else}
                        <a href="#" class="off" onclick="autolang(this)"><i class='fa fa-comments-o'></i>自动语言(关)</a>
                    {/eq}
                </li>
                
                <li class="divider"></li>
                <li>
                    <a href="#" onclick="clang('cn')">
                        <div>
                            <i class="fa fa-comments-o"></i> 中文 <span class="pull-right text-muted small" id="commentnum1"></span>
                        </div>
                    </a>
                    <a href="#" onclick="clang('en')">
                        <div>
                            <i class="fa fa-comments-o"></i> 英文 <span class="pull-right text-muted small" id="commentnum2"></span>
                        </div>
                    </a>
                </li>
            </ul>
            <a href="javascript:void(0);" class="roll-nav roll-right J_tabSetting right-sidebar-toggle" title="更多"><i class="fa fa-tasks"></i></a>
            <div class="btn-group roll-nav roll-right">
                <button class="dropdown J_tabClose" data-toggle="dropdown">关闭<span class="caret"></span>
                </button>
                <ul role="menu" class="dropdown-menu dropdown-menu-right">
                    <li class="J_tabShowActive"><a>定位当前选项卡</a>
                    </li>
                    <li class="divider"></li>
                    <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                    </li>
                    <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                    </li>
                </ul>
            </div>
        </div>
        <!--内容展示模块-->
        <div class="row J_mainContent" id="content-main">
            <iframe class="J_iframe" name="iframe_crmeb_main" width="100%" height="100%" src="{:Url('Index/welcome')}" frameborder="0" data-id="{:Url('Index/welcome')}" seamless></iframe>
        </div>
        <!--底部版权-->
        <div class="footer"  @touchmove.prevent>
            <div class="pull-right">© 2014-2019 <a href="http://www.dl-china.net/" target="_blank">dl-china.net</a>&nbsp;&nbsp;&nbsp;技术支持
                <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=1759766312&amp;site=qq&amp;menu=yes">
                    <img border="0" src="http://wpa.qq.com/pa?p=2:1759766312:51" alt="点击这里给我发消息" title="点击这里给我发消息">
                </a>
            </div>
        </div>
    </div>
    <!--右侧部分结束-->
    <!--右侧边栏开始-->
    <div id="right-sidebar">
        <div class="sidebar-container">
            <ul class="nav nav-tabs navs-3">
                <li class="active">
                    <a data-toggle="tab" href="#tab-1">
                        <i class="fa fa-bell"></i>关于我们
                    </a>
                </li>
                <li class="">
                    <a data-toggle="tab" href="#tab-2">
                        <i class="fa fa-gear"></i> 设置
                    </a>
                </li>
                
            </ul>
            <div class="tab-content">
                <div id="tab-1" class="tab-pane active">
                    <div class="sidebar-title">
                        <h3><i class="fa fa-comments-o"></i>技术支持</h3>
                        <small><i class="fa fa-tim"></i> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=1759766312&amp;site=qq&amp;menu=yes">
                            <img border="0" src="http://wpa.qq.com/pa?p=2:1759766312:51" alt="点击这里给我发消息" title="点击这里给我发消息">
                        </a></small>
                    </div>
                    <div>
                        <div class="sidebar-message">
                            <a target="_blank" href="http://www.dl-china.net" >
                                <div class="pull-left text-center">
                                    <img alt="image" class="img-circle message-avatar" src="{__FRAME_PATH}img/admin_logo.png">
                                    <div class="m-t-xs">
                                        <i class="fa fa-star text-warning"></i> <i class="fa fa-star text-warning"></i><i class="fa fa-star text-warning"></i>
                                    </div>
                                </div>
                                <div class="media-body">
                                    湛江赤坎总公司 <br>
                                    <small class="text-muted">【查看】</small>
                                    <small class="text-muted" style="display: none"> <a class="J_menuItem admin_close" href="www.dl-china.net" data-index="0">【查看】</a></small>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
                <div id="tab-2" class="tab-pane ">
                    <div class="sidebar-title">
                        <h3><i class="fa fa-comments-o"></i> 提示</h3>
                        <small><i class="fa fa-tim"></i> 你可以从这里选择和预览主题的布局和样式，这些设置会被保存在本地，下次打开的时候会直接应用这些设置。</small>
                    </div>
                    <div class="skin-setttings">
                        <div class="title">设置</div>
                        <div class="setings-item">
                            <span>收起左侧菜单</span>
                            <div class="switch">
                                <div class="onoffswitch">
                                    <input type="checkbox" name="collapsemenu" class="onoffswitch-checkbox" id="collapsemenu">
                                    <label class="onoffswitch-label" for="collapsemenu">
                                        <span class="onoffswitch-inner"></span> <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="setings-item">
                                <span>固定宽度</span>
                            <div class="switch">
                                <div class="onoffswitch">
                                    <input type="checkbox" name="boxedlayout" class="onoffswitch-checkbox" id="boxedlayout">
                                    <label class="onoffswitch-label" for="boxedlayout">
                                        <span class="onoffswitch-inner"></span> <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="setings-item">
                            <span>菜单点击刷新</span>
                            <div class="switch">
                                <div class="onoffswitch">
                                    <input type="checkbox" name="refresh" class="onoffswitch-checkbox" id="refresh">
                                    <label class="onoffswitch-label" for="refresh">
                                        <span class="onoffswitch-inner"></span> <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="title">皮肤选择</div>
                        <div class="setings-item default-skin nb">
                                <span class="skin-name ">
                         <a href="#" class="s-skin-0">
                             默认皮肤
                         </a>
                    </span>
                        </div>
                        <div class="setings-item blue-skin nb">
                                <span class="skin-name ">
                        <a href="#" class="s-skin-1">
                            蓝色主题
                        </a>
                    </span>
                        </div>
                        <div class="setings-item yellow-skin nb">
                                <span class="skin-name ">
                        <a href="#" class="s-skin-3">
                            黄色/紫色主题
                        </a>
                    </span>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <!--右侧边栏结束-->
</div>
<!--vue调用不能删除-->
<div id="vm"></div>
<script src="{__FRAME_PATH}js/jquery.min.js"></script>
<script src="{__FRAME_PATH}js/bootstrap.min.js"></script>
<script src="{__FRAME_PATH}js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="{__FRAME_PATH}js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="{__FRAME_PATH}js/plugins/layer/layer.min.js"></script>
<script src="{__FRAME_PATH}js/hplus.min.js"></script>
<script src="{__FRAME_PATH}js/contabs.min.js"></script>
<!-- <script src="{__FRAME_PATH}js/plugins/pace/pace.min.js"></script> -->
<script>

        function logout() {
            layer.confirm('您确定要退出登录？', {title: '登出提醒'}, function (index) {
                location.href = '{:\\think\\Url::build("Pub/login")}'
            })
        }
        function xml() {
            url = "{:url('index/index/setmap')}";
            $.post(url, function (res) {
                window.location.reload();
            }, 'json')
        }
    
        function autolang(obj) {
            if ($(obj).hasClass('off')){
                $(obj).html("<i class='fa fa-comments-o'></i>自动语言(开)");
                $(obj).removeClass('off').addClass('on');
                url = "{:url('Index/autolang',array('value'=>'on'))}";
            } else {
                $(obj).removeClass('on').addClass('off');
                $(obj).html("<i class='fa fa-comments-o'>自动语言(关)");
                url = "{:url('Index/autolang',array('value'=>'off'))}";
            }
            $.post(url, function (res) {
                // window.location.reload();
            }, 'json')
        }

        function clang(value) {
            if (value =='cn'){
                url = "{:url('Index/lang',['lang'=>'cn'])}";
            } else {
                url = "{:url('Index/lang',['lang'=>'en'])}";
            }
            $.post(url, function (res) {
                window.location.reload();
            })
        }
    
        function cleanCache() {
            layer.confirm('您确定要清理缓存？', {title: '清理缓存'}, function (index) {
                $.post("{:url('Index/cleanCache')}", function (res) {
                    window.location.reload();
    
    //                if(res.status==1){
    //                    layer.alert(res.msg,function (index) {
    //                        window.location.reload();
    //                        layer.close(index);
    //                    })
    //                }else{
    //                    layer.alert(res.msg)
    //                }
                })
            })
        }

        $('#parentIframe').on('click', function(){
            layer.open({
            type: 1
            ,title: false //不显示标题栏
            ,closeBtn: false
            ,area: '300px;'
            ,shade: 0.8
            ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
            ,resize: false
            ,btn: ['进入官网', '暂不进入']
            ,btnAlign: 'c'
            ,moveType: 1 //拖拽模式，0或者1
            ,content: '<div style="padding: 50px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">技术支持：1759766312<br>网站负责：dl-china.net</div>'
            ,success: function(layero){
                var btn = layero.find('.layui-layer-btn');
                btn.find('.layui-layer-btn0').attr({
                href: 'http://www.dl-china.net/'
                ,target: '_blank'
                });
            }
            });
        });
    </script>
</body>
</html>
